package datapro;

import java.util.HashSet;
import java.util.List;

public class Stop {
	private String id;
	private String name;
	private String lat;
	private String lon;
	private HashSet<String> routes;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}

	public HashSet<String> getRoutes() {
		return routes;
	}

	public void setRoutes(HashSet<String> routes) {
		this.routes = routes;
	}

	public void addRoutes(List<String> routeList){
		if(this.routes==null){
			this.routes=new HashSet<String>();
		}
		this.routes.addAll(routeList);
	}

	@Override
	public String toString() {
		return  id + "," + name + "," + lat + ","
				+ lon ;
	}
}
